home *** CD-ROM | disk | FTP | other *** search
/ InfoMagic Internet Tools 1995 April / Internet Tools.iso / dos_win / winsock / maillist / 94-04.Z / 94-04 / text0012.txt < prev    next >
Encoding:
Text File  |  1994-04-30  |  13.0 KB  |  322 lines

  1. WSARCHIE 0.2 has been released and uploaded to these two sites:
  2.  
  3. ftp.demon.co.uk:/pub/ibmpc/winsock/apps/wsarchie/wsarchie.zip (should be
  4.     renamed to wsarch02.zip.
  5. ftp.sunet.se:/pub/pc/windows/wsarchie/wsarch02.zip
  6.  
  7. There is a text file alongside these detailing the main changes. Briefly these
  8. are:
  9.  
  10. 1.  WSARCHIE now uses port 1525 and not 901. This should help some of the people
  11.     using wsarchie from behind firewalls.
  12.  
  13. 2.  The niceness level has been set to 0. It was 32000+ which meant that it was
  14.     asking for the worst service!
  15.  
  16. 3.  The ini file can now reside in either the c:\windows directory or the
  17.     working directory.
  18.  
  19. The next priority as regards further work is looking into problems occuring
  20. when people have archie servers very close by. It would appear that wsarchie
  21. is not able to get ready to receive fast enough! (I work down a dial up line
  22. so this might be difficult for me to solve though).
  23.  
  24. Thank you for your interest and responses. If you have difficulties with this
  25. version, have patience, let me know what they are and tell me what winsock you
  26. use at the minimum. My email address is david@maxwell.demon.co.uk.
  27.  
  28. David Woakes
  29. -- 
  30. ---------------------------------------------------------------------------
  31. David Woakes                               Voice: +44-31 447 0509
  32. 8 Maxwell St                               Email: david@maxwell.demon.co.uk
  33. Edinburgh
  34. Scotland
  35. From news@bigblue.oit.unc.edu Thu Mar 31 17:13:57 1994
  36. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  37.           id AA01667; Thu, 31 Mar 1994 15:12:52 -0500
  38. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  39.           id AA09271; Thu, 31 Mar 1994 14:44:53 -0500
  40. Received: from GATEWAY by bigblue with netnews
  41.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  42. To: winsock@sunsite.unc.edu
  43. Date: 31 Mar 1994 17:13:57 GMT
  44. From: friesend@duke.usask.ca (Darryl Friesen)
  45. Message-Id: <2nf0cl$36n@tribune.usask.ca>
  46. Organization: University of Saskatchewan
  47. Sender: ses
  48. References: <2ncu7u$d1b@tribune.usask.ca>, <slawek.765069978@aries>
  49. Subject: Re: Problems with new MS TCP-32 and WFW 3.11
  50.  
  51. On 30 Mar 94 23:26:18 GMT Slawomir Z. Janicki (slawek@aries.scs.uiuc.edu) wrote:
  52. > friesend@duke.usask.ca (Darryl Friesen) writes:
  53.  
  54. > >Has anyone else experienced probems with Micosoft's new TCP/IP
  55. > >stack (the March beta) and Winsock apps?
  56.  
  57. [snip snip]
  58.  
  59. > >WinQVT/Net "drops" characters VERY frequently.  A look at the
  60. > >console shows hundreds of errors, almost all are:
  61.  
  62. > >comm_write_char; send() error 10036
  63. > >comm_read; recv() error 10036
  64. > >comm_write_blk; send error 10036
  65.  
  66. > These symptoms would indicate incorrect setup. MS TCP/IP-32 works
  67. > even with the incorrect mask/gateway/IP number but is just that:
  68. > slow and erratic. Double check your setup and consult your admin.
  69.  
  70. I checked, double checked, then checked again.  I'm using the same
  71. settings for name servers, gateway, net mask, and my IP address that
  72. I have always used for DOS and Winsock apps.  Still no luck with
  73. HGopher or Mosaic. (could it be related to the lack of DNS support
  74. in this version?)
  75.  
  76. Bob Fenchel sent me a 'fix' for the WinQVT/Net problem though.  
  77. Changing the "dispatch=sync" to "dispatch=async" in the QVTNET.INI
  78. file eliminates the problem of QVTNET 'dropping' characters (thanx
  79. alot Bob!)
  80.  
  81. Anyone have any other suggestions?  Would it help if I posted my
  82. config files (I always hate doing that because it wastes so much
  83. bandwidth)?  I've received two other messages from people with
  84. the same, or similar problems.
  85.  
  86. > Slawek Janicki
  87. > slawek@m.scs.uiuc.edu
  88.  
  89. Thanx for the suggestion Slawek,
  90.  
  91. - Darryl
  92.  
  93.   ----------------------------------------------------------------------
  94.    Darryl Friesen, Client Services              Darryl.Friesen@usask.ca
  95.    Department of Computing Services          University of Saskatchewan
  96.    <A HREF="http://gopher.usask.ca/~friesend/">This is my Home Page</A>
  97.   ----------------------------------------------------------------------
  98.   "Time flies like an arrow, but fruit flies like a banana"
  99. From news@bigblue.oit.unc.edu Thu Mar 31 17:52:06 1994
  100. Received: from bigblue.oit.unc.edu by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  101.           id AA01705; Thu, 31 Mar 1994 15:13:06 -0500
  102. Received: by bigblue.oit.unc.edu (AIX 3.2/UCB 5.64/4.03)
  103.           id AA06096; Thu, 31 Mar 1994 15:08:43 -0500
  104. Received: from GATEWAY by bigblue with netnews
  105.     for winsock@sunsite.unc.edu (winsock@sunsite.unc.edu)
  106. To: winsock@sunsite.unc.edu
  107. Date: Thu, 31 Mar 1994 17:52:06 GMT
  108. From: hall@cs.sfu.ca (Gary Hall)
  109. Message-Id: <1994Mar31.175206.13355@cs.sfu.ca>
  110. Organization: Simon Fraser University
  111. Sender: ses
  112. Subject: Problem recv()'ing with Novell Winsock
  113.  
  114. Hello there,
  115.   I would like feedback about whether the following behaviour represents
  116. a problem with the (Novell) Winsock.DLL I am using or with some error or
  117. other in its use.
  118.  
  119.   In this application, (sx_msg) structures (see typedef below) are being passed
  120. among processes running in the Unix and Windows environments. The structures
  121. are 1076 bytes in length. The Winsock.DLL recv()'s messages arriving from the
  122. Unix domain in two steps: the first is 1024 bytes long, the second is 52
  123. bytes long. Although there is no problem with accessing the contents of the
  124. first (1024 byte) portion of the message, the contents of the second are 
  125. apparently lost. There is no problem exchanging messages among processes within
  126. the Unix domain.
  127.  
  128.   Here is an example of the debugging output produced by the receive_data
  129. function whose definition appears following the example.  (For purposes of 
  130. debugging, '^' chars are substituted for '\0' chars and the final char in the 
  131. msg is set to null.) This is the message sent by the Unix process:
  132.  
  133. ^^^tuNa^^^/^^^^SELECT A.S_DATE "Date", C.LOCATION_DESC "Location", B.OUTAGE_DESC "Out Type", A.OUTAGES "# of Outages" FROM ACMSREL A, RFOUTAGES B, RFLOCATIONS C WHERE A.OUTAGE_CODE = B.OUTAGE_CODE AND A.LOCATION = C.LOCATION AND A.S_DATE = (SELECT MAX(DISTINCT D.S_DATE) FROM ACMSREL D) AND A.LOCATION IN (2700, 2710, 2720, 2730, 2740, 2800, 6300) ORDER BY A.S_DATE, C.REF_NO, B.OUTAGE_DESC ^fs rw,bg,hard,intr,dev=8204 0 0
  134. monoceros:/sx1 /sx1 nfs rw,bg,hard,intr,dev=8203 0 0
  135. monoceros:/sx /sx nfs rw,bg,hard,intr,dev=8205 0 0
  136. monoceros:/sx1 /sx1 nfs rw,bg,hard,intr,dev=8206 0 0
  137. monoceros:/usr/lisp-4.0 /usr/lisp-4.0 nfs rw,bg,hard,intr,dev=8207 0 0
  138. monoceros:/usr/spe-1.2 /usr/spe-1.2 nfs rw,bg,hard,intr,dev=8208 0 0
  139. monoceros:/usr/lisp-4.0 /usr/lisp-4.0 nfs rw,bg,hard,intr,dev=8209 0 0
  140. monoceros:/usr/spe-1.2 /usr/spe-1.2 nfs rw,bg,hard,intr,dev=820a 0 0
  141. dipper:/home/dk2 /amd/dipper/home/dk2 nfs rw,dev=820e 0 0
  142. apus:/home/dk5 /amd/apus/home/dk5 nfs rw,dev=820b 0 0
  143. aquila:/am_link/local2.cs.sun4 /amd/aquila/net/local2 nfs rw,dev=8SYSTEMX/INTERFACE@RCI^l-rscn /am^^^
  144.  
  145. (The stuff between the SQL and the login string "SYSTEMX/INTERFACE@RCI" is 
  146. junk that happened to be in the memory allocated to the message.)
  147.  
  148. The receive_data function reports that 1024 bytes are retrieved the
  149. first time thru the loop and prints out the first portion of the message:
  150.  
  151. ^^^IuNa^^^/^^^^SELECT A.S_DATE "Date", C.LOCATION_DESC "Location", B.OUTAGE_DESC "Out Type", A.OUTAGES "# of Outages" FROM ACMSREL A, RFOUTAGES B, RFLOCATIONS C WHERE A.OUTAGE_CODE = B.OUTAGE_CODE AND A.LOCATION = C.LOCATION AND A.S_DATE = (SELECT MAX(DISTINCT D.S_DATE) FROM ACMSREL D) AND A.LOCATION IN (2700, 2710, 2720, 2730, 2740, 2800, 6300) ORDER BY A.S_DATE, C.REF_NO, B.OUTAGE_DESC ^fs rw,bg,hard,intr,dev=8204 0 0
  152. monoceros:/sx1 /sx1 nfs rw,bg,hard,intr,dev=8203 0 0
  153. monoceros:/sx /sx nfs rw,bg,hard,intr,dev=8205 0 0
  154. monoceros:/sx1 /sx1 nfs rw,bg,hard,intr,dev=8206 0 0
  155. monoceros:/usr/lisp-4.0 /usr/lisp-4.0 nfs rw,bg,hard,intr,dev=8207 0 0
  156. monoceros:/usr/spe-1.2 /usr/spe-1.2 nfs rw,bg,hard,intr,dev=8208 0 0
  157. monoceros:/usr/lisp-4.0 /usr/lisp-4.0 nfs rw,bg,hard,intr,dev=8209 0 0
  158. monoceros:/usr/spe-1.2 /usr/spe-1.2 nfs rw,bg,hard,intr,dev=820a 0 0
  159. dipper:/home/dk2 /amd/dipper/home/dk2 nfs rw,dev=820e 0 0
  160. apus:/home/dk5 /amd/apus/home/dk5 nfs rw,dev=820b 0 0
  161. aquila:/am_link/local2.cs.sun4 /amd/aquila/net/lo
  162.  
  163. The next time through 52 bytes are read. However, the printout of the package 
  164. is empty!
  165.  
  166. The size of the entire received message in this case is reported to be 1024, 
  167. and, when the entire message is displayed following exit from the loop
  168. (code not shown in function definition below), it ends at the end of the first
  169. retrieved portion. In other cases, when messages are received from another 
  170. server, the received message size is reported to be 1075 (final byte of 
  171. message is set to null); although in this case too the printout of the second 
  172. package is empty, not filled with '^'s or garbage as one would expect. 
  173.  
  174. Finally, after the '^' chars have been replaced with '\0' chars, the message
  175. type and SQL print out with no problem, but the login string is not there.
  176.  
  177. I would appreciate any thoughts or suggestions as to how to deal with this.
  178.  
  179. Gary Hall                  | Voice (604) 291-3208 | INTERNET: hall@cs.sfu.ca
  180. Centre for Systems Science | Fax   (604) 291-4424 | 
  181. Simon Fraser University    |               
  182. Burnaby, B.C.  V5A 1S6     |       
  183.  
  184. /****************** RECEIVE_DATA **********************************/
  185.  
  186. int FAR PASCAL receive_data (SOCKET sock, sx_msg FAR *theData)
  187. {
  188.   int           rval;
  189.   int           err_no;
  190.   int           write_pos = 0;
  191.   int           count = sizeof (sx_msg);
  192.   char     FAR    *package;
  193.   do
  194.     {
  195.       rval = recv (sock, (char FAR *) &theData[write_pos], count, NULL);
  196.  
  197.     /* Print package size */
  198.     wsprintf(szBuffer, "Size = %d ", rval) ;
  199.     MessageBox (NULL, szBuffer, "Package!", MB_OK) ;
  200.  
  201.     /* Print package */
  202.     if (write_pos == 0) { /* insert null in final byte of first package */
  203.         package[rval - 1] = '\0';
  204.     }
  205.     wsprintf(szBuffer, "%s", package ) ;
  206.     MessageBox (NULL, szBuffer, "Package!", MB_OK) ;
  207.     if (write_pos == 0) {
  208.         package[rval - 1] = '^';
  209.     }
  210.  
  211.       if (rval < 0)
  212.         {
  213.       err_no = WSAGetLastError();
  214.           if (err_no == WSAEWOULDBLOCK)
  215.         continue;
  216.       /* fi */
  217.  
  218.       wsprintf (szBuffer, "Error %d receiving message", err_no) ;
  219.           MessageBox (NULL, szBuffer, "Wonderful!", MB_OK) ;
  220.       return (SOCK_READ_FAILED);
  221.         }
  222.       /* fi */
  223.  
  224.       if (rval == 0)
  225.         { 
  226.           wsprintf (szBuffer, "Read from closed communication channel") ;
  227.           MessageBox (NULL, szBuffer, "Wonderful!", MB_OK) ;
  228.           return (SOCK_READ_DISCONN);
  229.         }
  230.       /* fi */
  231.  
  232.       count -= rval;
  233.       write_pos += rval;
  234.  
  235.     } while (count > 0);
  236.  
  237.     /* Print message size */
  238.     wsprintf(szBuffer, "Received message size = %d ", _fstrlen((char FAR *)theData)) ;
  239.     MessageBox (NULL, szBuffer, "Message!", MB_OK) ;
  240.  
  241.     return_nulls(theData);
  242.  
  243.       if (ntohl(theData->msg_type) == SQLSTRING) {
  244.      wsprintf(szBuffer, "TYPE: %lu",ntohl(theData->msg_type)) ;
  245.      MessageBox (NULL, szBuffer, "receive_data: IACF DLL", MB_OK) ;
  246.      wsprintf(szBuffer, "SQL: %s",theData->u.orasql.sql) ;
  247.      MessageBox (NULL, szBuffer, "receive_data: IACF DLL", MB_OK) ;
  248.      wsprintf(szBuffer, "LOGIN: %s",theData->u.orasql.login_str) ;
  249.      MessageBox (NULL, szBuffer, "receive_data: IACF DLL", MB_OK) ;
  250.      }
  251.   return (SOCK_NOERROR);
  252. }
  253.  
  254. /*end receive_data*/
  255.  
  256.  
  257. /*--- Typedefs --------------------------------------------------------------*/
  258.  
  259. /*
  260.  * SQL query to Oracle structure
  261.  */
  262. typedef struct oracle_sql_query {
  263.     char    sql[1024];        /* SQL statement */
  264.     char    login_str[32];        /* account_name/password@db_string */
  265.     long    header_flag;        /* include headers in output or not */
  266. } orasql_query;
  267.  
  268.     .
  269.     .
  270.     .
  271.  
  272. typedef struct sx_message {
  273.     long    msg_type;        /* message type */
  274.     long    sender;            /*  */
  275.     long    str_len;        /* length of string in union */
  276.     long    flag;
  277.   union u_data {
  278.         long        numvalue;        /* numerical value */
  279.         char        string[1024];        /* char string */
  280.         char        strarray[16][64];    /* char string array */
  281.         orasql_query    orasql;            /* SQL query to Oracle*/
  282.         confirmwin    cwin;            /* confirm window */
  283.         booleanwin    bwin;            /* two choice window */
  284.         textwin        twin;            /* mult. input window */
  285.         registration    reg;            /* server registration*/
  286.     } u;
  287. } sx_msg;
  288.  
  289.  
  290.  
  291. -- 
  292. Gary Hall                  | Voice (604) 291-3208 | INTERNET: hall@cs.sfu.ca
  293. Centre for Systems Science | Fax   (604) 291-4424 | 
  294. Simon Fraser University    |               
  295. Burnaby, B.C.  V5A 1S6     |       
  296. From pbh@MIT.EDU Thu Mar 31 15:42:40 1994
  297. Received: from MIT.EDU (MIT.MIT.EDU) by SunSITE.Unc.EDU (5.65c+IDA/FvK-1.07) with SMTP
  298.           id AA05545; Thu, 31 Mar 1994 15:42:40 -0500
  299. Received: from ASHPOOL.MIT.EDU by MIT.EDU with SMTP
  300.     id AA05976; Thu, 31 Mar 94 15:42:23 EST
  301. Message-Id: <9403312042.AA05976@MIT.EDU>
  302. To: cas@sbctri.sbc.com (Chris A. Shenefiel)
  303. Cc: Multiple recipients of list <winsock@sunsite.unc.edu>, dosdev@MIT.EDU
  304. Subject: Re: Whois client for Winsock?
  305. Date: Thu, 31 Mar 94 15:42:18
  306. From: pbh@MIT.EDU
  307.  
  308.  
  309. >Does anyone know of a whois client for winsock?
  310.  
  311. A winsock version of a whois client is available via anonymous ftp from:
  312.  
  313. net-dist.mit.edu:/pub/dos/potluck/winsock/winwhois.zip
  314.  
  315. The zip file includes the source and executable. This has only been tested 
  316. on Novell's LWP winsock stack at this point. Please submit code changes or 
  317. bug reports to dosdev@mit.edu.
  318.  
  319. Please note that there is also a LAN WorkPlace specific, i.e. not winsock, 
  320. client available at net-dist.mit.edu:/pub/dos/potluck/whois.exe
  321.  
  322.